package com.bruce.downloader.dto;

import org.springframework.web.client.RestTemplate;

public class DownloadDetailDto extends DownloadFileDetailDto {
    private long contentLength;
    private String dirFilePath;
    private RestTemplate restTemplate;
    private String url;

    public DownloadDetailDto(int index, String fileName, long contentLength, String dirFilePath, RestTemplate restTemplate, String url) {
        super(index, fileName);
        this.contentLength = contentLength;
        this.dirFilePath = dirFilePath;
        this.restTemplate = restTemplate;
        this.url = url;
    }

    public long getContentLength() {
        return contentLength;
    }

    public DownloadDetailDto setContentLength(long contentLength) {
        this.contentLength = contentLength;
        return this;
    }

    public String getDirFilePath() {
        return dirFilePath;
    }

    public DownloadDetailDto setDirFilePath(String dirFilePath) {
        this.dirFilePath = dirFilePath;
        return this;
    }

    public RestTemplate getRestTemplate() {
        return restTemplate;
    }

    public DownloadDetailDto setRestTemplate(RestTemplate restTemplate) {
        this.restTemplate = restTemplate;
        return this;
    }

    public String getUrl() {
        return url;
    }

    public DownloadDetailDto setUrl(String url) {
        this.url = url;
        return this;
    }
}
